<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/pages/login/common.jsp"%>
<%
	String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta content="B2B电商平台" name="description" />
<meta content="B2B电商平台" name="keyword" />

<title>B2B电商平台.订单统计</title>
<link rel="stylesheet" type="text/css"
	href="<%=path%>/include/css/btn.css" />
<link rel="stylesheet" type="text/css"
	href="<%=path%>/include/css/themes.css" />
<link rel="stylesheet"
	href="<%=path%>/include/JQuery zTree v3.4/css/zTreeStyle/zTreeStyle.css">
<link rel="stylesheet" type="text/css"
	href="<%=path%>/include/css/register_icss.css" />
<link rel="stylesheet" type="text/css"
	href="<%=path%>/include/css/page.css" />
<link rel="stylesheet" type="text/css"
	href="<%=path%>/include/pagination/page.css" media="all">
<link rel="stylesheet"
	href="<%=path%>/include/JQuery ui/css/smoothness/jquery-ui-1.7.3.custom.css"
	type="text/css"></link>
<link rel="stylesheet" type="text/css"
	href="<%=path%>/include/sweetalert/sweetalert.css" />
<link rel="stylesheet" type="text/css"
	href="<%=path%>/include/css/mmt_trading.css" />

<script type="text/javascript"
	src="<%=path%>/include/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript"
	src="<%=path%>/include/JQuery ui/js/jquery-ui-1.7.3.custom.min.js"></script>
<script type="text/javascript"
	src="<%=path%>/include/js/icss.common.js"></script>
<script type="text/javascript" src="<%=path%>/include/js/cookies.js"></script>

<script type="text/javascript"
	src="<%=path%>/include/pagination/jquery.pagination.js"></script>
<script type="text/javascript"
	src="<%=path%>/include/pagination/init.js"></script>

<script type="text/javascript"
	src="<%=path%>/include/sweetalert/sweetalert.min.js"></script>
<script type="text/javascript"
	src="<%=path%>/include/sweetalert/sweetalert-dev.js"></script>
<script src="<%=path%>/include/DatePicker/WdatePicker.js"
	charset="UTF-8" type="text/javascript"></script>

<style type="text/css">
input {border-radius: 4px;border:1px solid #999;}

.noborder {
	border: none;
	height: 2px;
	overflow: hidden;
}

.noborder td {
	height: 2px;
}

button{
    width:44px;
    height:24px;
    line-height:24px;   
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: 0 -203px;
    border:0;
    cursor:pointer;
    font: 12px/1.5 arial,tahoma,\5b8b\4f53;
    margin: 0 0 0 5px;
    outline:none;
    background-image: url('<%=path%>/include/css/img/xs_bgx.png');   
}
th{
   border: 1px #e0e0e0 solid;
}
#list_tbody td{
   border: 1px #e0e0e0 solid;
   font-size: 12px;
}
</style>
<script type="text/javascript">
	$(function(){
		_queryList();
	})
	//include/css/img/xs_bgx.png
	var pagination;
	function _queryList(){
		var url = "<%=path%>/fullStatistics/queryOrderList.do";
		var data = {
			queryId : $("#queryId").val(),
			type : $("#type").val(),
			beginDate : $("#beginDate").val(),
			endDate : $("#endDate").val(),
			queryName : $("#queryName").val(),
			orderNo : $("#orderNo").val()
		};
		pagination = _initPagination({
			'pageId' : 'pagination',
			'cKey' : 'queryReduceList',
			'url' : url,
			'data' : data,
			'rows' : 8,
			'callback' : _initDataList
		});
	}
	function _initDataList(data) {
		var d = data.rows;
		var total = data.total;
		var re = new RegExp("\u0001" + "\+", "ig");
		var re1 = new RegExp("\u0002" + "\+", "ig");
		var str = "";
		for (var i = 0; i < d.length; i++) {
			str += '<tr class="noborder"><td colspan="5"></td></tr>';
			str += '<tr class="list_table_tr">';
			str += '	<td class="span5" nowrap>' + d[i].PID + '</td>';
			str += '	<td class="span20" nowrap>' + d[i].ORDER_NO + '</td>';
			str += '	<td class="span20" nowrap>' + d[i].ORDER_TIME + '</td>';
			str += '	<td class="span20" nowrap>' + d[i].USER_NAME + '</td>';
			str += '	<td class="span20" nowrap>' + d[i].YH_MONEY + '</td>';
			str += "</tr>";
		}
		$("#list_tbody").html(str);
		_reHeight();
	}

	function _clear() {
		$("#beginDate").val('');
		$("#endDate").val('');
		$("#queryName").val('');
		$("#orderNo").val('');
	}
</script>
</head>
<body>
	<input type="hidden" id="queryId" name="queryId" value="${queryId }">
	<input type="hidden" id="type" name="type" value="${type }">
	<div id="contentDiv" style="padding:10px;">
		<div class="toptil"   >
			订单统计
			<!-- <div class="tag_back">
				<button class="orange_search_btn4"
					onmouseover="this.className='orange_search_btn4_hov'"
					onmouseout="this.className='orange_search_btn4'"
					onclick="window.history.go(-1);" type="button">返回</button>
			</div> -->
		</div>
		<div id="sear"
			style="border:1px solid #e0e0e0;margin-top:10px;background-color:#F5F5F5; height: 40px;line-height: 40px;font-size:14px;">
			<form id="fm" name="fm" method="post" action=""
				novalidate="novalidate">
				&nbsp;订单号：<input id="orderNo" name="orderNo"
					style="width:100px;height: 26px;"> 用户名： <input
					id="queryName" name="queryName" style="width:100px;height: 26px;">

				订单时间： <input type="text" class="Wdate"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true,maxDate:'#F{$dp.$D(\'endDate\')}'})"
					style="height: 26px;width:140px;margin-bottom: 0px;cursor:pointer;"
					id="beginDate" readOnly name="beginDate"
					onkeydown="if(event.keyCode==13) return false;" /> 至： <input
					type="text" class="Wdate"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true,minDate:'#F{$dp.$D(\'beginDate\')}'})"
					style="height: 26px;width:140px;margin-bottom: 0px;cursor:pointer;"
					id="endDate" readOnly name="endDate"
					onkeydown="if(event.keyCode==13) return false;" />
                    <button  type="button" onclick="_queryList()">查询</button>
                    <button  type="button" onclick="_clear()">清空</button>
				<!-- 	<button class="orange_search_btn3" onmouseover="this.className='orange_search_btn3_hov'" onmouseout="this.className='orange_search_btn3'" onclick="_queryList()" type="button">查询</button>
							<button class="orange_search_btn3" onmouseover="this.className='orange_search_btn3_hov'" onmouseout="this.className='orange_search_btn3'" onclick="_clear()" type="button">清空</button> -->

			</form>
		</div>
		<div style="width:100%;margin-top:10px;">
			<table class="list_table"
				style="width:100%;border-collapse: collapse;" table-layout="fixed">
				<thead>
					<tr class="list_table_title_tr" style="background-color: #EEEEEE;background-image: none;">
						<th  nowrap>序号</th>
						<th  nowrap>订单号</th>
						<th  nowrap>时间</th>
						<th  nowrap>买家</th>
						<th  nowrap>优惠金额</th>
					</tr>
				</thead>
				<tbody id="list_tbody" class="list_tbody">
				</tbody>
			</table>
			<br />
			<div id="pagination" style="padding-top:0px;margin-top:0px;"></div>
		</div>
	</div>

</body>
<script type="text/javascript">
	$(document).ready(function() {
		_reHeight();
	});
	function _reHeight() {
		var main = $(window.parent.document).find("#rightFrame");
		var mainheight = $("#contentDiv").height();
		main.height(mainheight);
	}
</script>
</html>
